﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Worker
    {
        private List<IExecutable> listE;
        public Worker(List<IExecutable> listE)
        {
            this.listE = listE;
        }


        public void Run()
        {
            foreach (var item in listE)
            {
                item.Execute();
            }
        }
    }
}
